package cn.tedu._05mvcboot02.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

@Data
public class UserInsertDTO {
    @ApiModelProperty(value = "用户名",required = true)
    @Size(min = 6,max = 10,message = "用户名长度必须在6~10之间")
    private String username;
    @ApiModelProperty(value = "用户密码",required = true)
    private String password;
    @ApiModelProperty(value = "用户昵称",required = true)
    private String nickname;
}
